package com.yang.design.create.builder;

import lombok.Getter;


/**
 * 指挥者类
 */
@Getter
public class Director {
    private Builder builder;

    public Director(Builder builder) {
        this.builder = builder;
    }

    public Bike construct(){
        builder.buildFrame();
        builder.buildSeat();
        return builder.getBike();
    }
}
